/*
** my_sort_int_tab.c for my_sort_int_tab in /home/goupil_r//afs/local/Jour_04
** 
** Made by robin goupil
** Login   <goupil_r@epitech.net>
** 
** Started on  Thu Oct  4 17:59:08 2012 robin goupil
** Last update Fri Oct  5 17:31:55 2012 robin goupil
*/

void	my_sort_int_tab(int *tab, int size)
{
  int	*iterator;
  int	*iterator_j;
  int	i;
  int	j;

  i = 0;
  while (i < size)
    {
      j = 0;
      iterator = tab - i;
      while (j < size)
	{
	  if (*iterator >= *tab)
	    {
	      my_swap(iterator, tab);
	    }
	  iterator = iterator + 1;
	  j = j + 1;
	}
      i = i + 1;
      tab = tab + 1;
    }
}
